
rd /S/Q .\dist
mkdir .\dist

: all
xcopy /E .\qss .\dist\qqs\
xcopy /E .\data .\dist\data\
copy .\*.json .\dist

: Debug
@REM copy .\x64\Debug\*.exe .\dist
@REM copy .\x64\Debug\*.dll .\dist
@REM copy .\3rd\QtPropertyBrowser\bin\QtSolutions_PropertyBrowser-headd.dll .\dist
@REM 
@REM pushd .\dist
@REM call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
@REM windeployqt --debug --compiler-runtime my-qt.exe 
@REM popd

: Release
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
MSBuild.exe my-qt.sln /t:Build /property:Configuration=Release /property:Platform=x64
call .\dev_copy.bat
copy .\x64\Release\*.exe .\dist
copy .\x64\Release\*.dll .\dist
copy .\3rd\QtPropertyBrowser\bin\QtSolutions_PropertyBrowser-head.dll .\dist

pushd .\dist
windeployqt --compiler-runtime my-qt.exe 
popd

